package com.groupbuying.redpacket.domain;

import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;


/**
 * 红包规则
 *
 * @author vincnetxin
 * @email vincentxin@aliyun.com
 * @date 2019-11-12 14:54:44
 * @des
 */
public class RedPacketRuleDO implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    private Long id;

    /**
     * 红包任务id
     */
    private String taskId;

    /**
     * 类型名称
     */
    private String name;

    /**
     * 类型总金额
     */
    private BigDecimal totalAmount;

    /**
     * 数量
     */
    private Integer totalCount;

    /**
     * 最小金额
     */
    private BigDecimal minAmount;

    /**
     * 最大金额
     */
    private BigDecimal maxAmount;

    /**
     * 删除标志:未删除-UNDEL-1,删除-DEL-0
     */
    private Integer isDelete;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    /**
     * 红包等级标志 有等级 1  普通红包 0
     **/
    private String redPacketLevel;

    public String getRedPacketLevel() {
        return redPacketLevel;
    }

    public void setRedPacketLevel(String redPacketLevel) {
        this.redPacketLevel = redPacketLevel;
    }

    /**
     * 设置：id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取：id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置：红包任务id
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    /**
     * 获取：红包任务id
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * 设置：类型名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取：类型名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置：类型总金额
     */
    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 获取：类型总金额
     */
    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置：数量
     */
    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    /**
     * 获取：数量
     */
    public Integer getTotalCount() {
        return totalCount;
    }

    /**
     * 设置：最小金额
     */
    public void setMinAmount(BigDecimal minAmount) {
        this.minAmount = minAmount;
    }

    /**
     * 获取：最小金额
     */
    public BigDecimal getMinAmount() {
        return minAmount;
    }

    /**
     * 设置：最大金额
     */
    public void setMaxAmount(BigDecimal maxAmount) {
        this.maxAmount = maxAmount;
    }

    /**
     * 获取：最大金额
     */
    public BigDecimal getMaxAmount() {
        return maxAmount;
    }

    /**
     * 设置：删除标志:未删除-UNDEL-1,删除-DEL-0
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取：删除标志:未删除-UNDEL-1,删除-DEL-0
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 设置：创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置：更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取：更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public String toString() {
        return "RedPacketRuleDO{" +
                "id=" + id +
                ", taskId='" + taskId + '\'' +
                ", name='" + name + '\'' +
                ", totalAmount=" + totalAmount +
                ", totalCount=" + totalCount +
                ", minAmount=" + minAmount +
                ", maxAmount=" + maxAmount +
                ", isDelete=" + isDelete +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", redPacketLevel='" + redPacketLevel + '\'' +
                '}';
    }
}
